package org.petstore.service;

import org.petstore.domain.Order;

import java.util.List;

public interface OrderService {
    void insertOrder(Order order);

    Order getOrder(int orderId);

    /**
     * description 获取用户所有订单
     * @param username:
     * @return List<Order>
     * @author huangzhangyan
     * @date 2022/1/8 0:28
     */
    List<Order> getOrdersByUsername(String username);



    int getNextId(String name);
}
